﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Practices.EnterpriseLibrary.Logging;
using BugTracker.Core.Infrastructure.Exceptions;

namespace BugTracker.WebUX.WebCode
{
    public class BTLogger
    {
        public static void HandleError(Exception e)
        {
            LogEntry entry = new LogEntry()
            {
                Message = e.Message
            };
            //Logger.Write(entry);
        }

        public static void HandleError(BugTrackerExpection e)
        {
            LogEntry entry = new LogEntry()
            {
                Message = e.Message
            };
            //Logger.Write(entry);
        }

        public static void HandleError(BTBusinessLogicException e)
        {
            LogEntry entry = new LogEntry()
            {
                Message = e.Message
            };
            //Logger.Write(entry);
        }

        public static void HandleError(BTDataAccessException e)
        {
            LogEntry entry = new LogEntry()
            {
                Message = e.Message
            };
            //Logger.Write(entry);
        }
    }
}